/**
 * Title LevelCategoriesServiceImpl
 * Package com.sba.manage.service.impl
 * Copyright 2024 www.hundsun.com All Rights Reserved.
 *
 * @author gd
 * @date 2024/9/9 11:33 PM
 * @version V5.1.2
 */
package com.ruoyi.manage.service.impl;

import com.ruoyi.manage.db.dao.SbaLevelCategoriesMapper;
import com.ruoyi.manage.db.model.SbaLevelCategories;
import com.ruoyi.manage.db.model.SbaLevelCategoriesExample;
import com.ruoyi.manage.service.ILevelCategories;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 音频管理服务
 * ClassName LevelCategoriesServiceImpl
 * @author gd
 * @date 2024/9/9 11:33 PM
 */
@Service
public class LevelCategoriesServiceImpl implements ILevelCategories {

    protected final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private SbaLevelCategoriesMapper sbaLevelCategoriesMapper;

    @Override
    public List<SbaLevelCategories> queryCategoriesList() {
        SbaLevelCategoriesExample example = new SbaLevelCategoriesExample();
        example.createCriteria();
        example.setOrderByClause("sort_order DESC");
        return sbaLevelCategoriesMapper.selectByExample(example);
    }
}